import express = require("express");
import DBPool from "./config/dbPool";
import { db2config } from "./config/db.config";
import indexRouter from './routes/index';

const port = 3000;
const app = express();
const db2 = new DBPool(db2config);
let db: DBPool;

app.use(express.json());
app.use('/', indexRouter);

app.listen(port, () => {
    console.log(`Example app listening on port ${port}`)
})